<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<script src="jquery.js"></script>
<script>

$(function(){ 
	$.fn.reset = function () {
  		$(this).each (function() { this.reset(); });
	}
		   
	$("#btnsend").click(function(){	
		disabledControls('form1', true);
		return false;
	});
	
	function disabledControls(_idForm, _bool){
		$("#form1 input,textarea,select").each(function(i){
			if(_bool) $(this).attr('disabled','-1');
			else $(this).removeAttr('disabled');
		}); 
	}
	
	$("#btnsend2").click(function(){	
		disabledControls('form1', false);
		return false;
	});
	
	$("#btnsend5").click(function(){	
		//$("#form1").reset();
		getValRadioButtons()
	});
	
	function getValRadioButtons(){
		$("#form1 input:checked").each(function(i){
			if($(this).attr("type")=="radio") 
				alert($(this).val());
		}); 	
	}
	
});

</script>

</head>

<body>
	<p>TXT Iframe
    <form id="form1" name="form1">
  		<input id="txtiframe" type="text" value="BR KLASSIC 2009" />
	  	<textarea id="txtiframe2" type="text"></textarea>
	  	<input id="fdfs" type="button" value="BR KLASSIC 2009" />
      	<select><optgroup><option>HOLA</option></optgroup></select>
        <input id="sdf" type="button" value="BR KLASSIC 2009" />
        <input id="sdf" type="file" value="BR KLASSIC 2009" />
        <br />

        <fieldset>
        	<input id="sdf" type="radio" value="BR KLASSIC 2009" />
            <input id="sdf" type="radio" value="BR KLASSIC 2009" />
            <input id="sdf" type="radio" value="BR KLASSIC 2009" />
            <input id="sdf" type="radio" value="BR KLASSIC 2009" />
            <input id="sdf" type="radio" value="BR KLASSIC 2009" />
        </fieldset>
<br />
        
        <input id="sdf" type="checkbox" value="BR KLASSIC 2009" /><br />

        <input id="btnsend" type="button" value="BR KLASSIC 2009" />
  </form>
  <input id="btnsend2" type="button" value="Desbloquear" />
</p>
	<p>&nbsp;</p>
    <input id="btnsend5" type="button" value="Reset" />
</body>
</html>
